package com.ruoyi.member.service;

import com.ruoyi.member.domain.MemberLike;
import java.util.List;

/**
 * 会员点赞Service接口
 *
 * @author ruoyi
 * @date 2025-10-24
 */
public interface IMemberLikeService {
    /**
     * 查询会员点赞列表
     *
     * @param memberLike 会员点赞
     * @return 会员点赞集合
     */
    public List<MemberLike> selectMemberLikeList(MemberLike memberLike);

    /**
     * 新增会员点赞
     *
     * @param memberLike 会员点赞
     * @return 结果
     */
    public int insertMemberLike(MemberLike memberLike);

    /**
     * 取消点赞短视频
     *
     * @param userId 用户ID
     * @param shortId 短视频ID
     * @return 结果
     */
    public int cancelLike(Long userId, Integer shortId);

    /**
     * 检查是否已点赞短视频
     *
     * @param userId 用户ID
     * @param shortId 短视频ID
     * @return 是否已点赞
     */
    public boolean checkLiked(Long userId, Integer shortId);
}
